﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Benefit.Models.View;
namespace Benefit.Interface.View
{
    /// <summary>
    /// 操作员月品种操作情况
    /// </summary>
    public interface IOperatorMonthProductInfo
    {
        /// <summary>
        /// 获取处理过的交易员品种交易信息(ok)
        /// </summary>
        /// <param name="tradeHistoryId"></param>
        /// <param name="operatorid"></param>
        /// <param name="db"></param>
        /// <returns></returns>
        List<OperatorMonthProductInfo> GetSortedOperatorMonthProductInfo(int month, int year, int operatorid);

        /// <summary>
        /// 得到不分多空方向的品种交易信息(ok)
        /// </summary>
        /// <param name="tradeHistoryId"></param>
        /// <param name="operatorid"></param>
        /// <returns></returns>
        List<OperatorMonthProductInfo> GetOperatorMonthProductInfoIgnoreDirection(int month, int year, int operatorid);

        /// <summary>
        /// 得到分多空方向的品种交易信息(ok)
        /// </summary>
        /// <param name="tradeHistoryId"></param>
        /// <param name="operatorid"></param>
        /// <returns></returns>
        List<OperatorMonthProductInfo> GetOperatorMonthProductInfo(int month, int year, int operatorid);

        /// <summary>
        /// 得到分多空方向的品种交易信息
        /// </summary>
        /// <param name="tradeHistoryId"></param>
        /// <param name="operatorid"></param>
        /// <returns></returns>
        void InitOperatorMonthProductInfo(int tradeHistoryId);


        void Delete(int tradeHistoryId);

        List<OperatorMonthProductInfo> GetOperatorMonthProductInfo(int month, int year, int operatorid, bool win);

    }
}
